1 - Catchment-scale temporariness
This folder contains the code and functions used to model data of temporariness at the small scale. The files present are:

- PhiC.m -> MATLAB code

- folder "functions":
	- color.m
	- blue_palette.txt
	- red_palette.txt

2 - Network-scale temporariness
This folder contains the code and functions used to model data of temporariness at a large scale. The files present are:

- PhiN.m -> MATLAB code

- folder "functions":
	- calcPdfs.m
	- color.m
	- dataLoading.m
	- fitPowerLaw.m
	- fitPowerLaws.m
	- red_palette.txt
	- violet_palette.txt

3 - Wetness Index
This folder contains the scripts used to calculate the Wetness Index.
They need to be run in the following order for each month ("01", "02", ..., "12") hereafter indicated as "%m%":

1 - PsychrometricConst.m
	input: elev.tif, Tavg_%m%.tif 
	output: gamma_%m%.mat

2 - deltaVPD.m
	input: Tmax_%m%.tif, Tmin_%m%.tif, vapr_%m%.tif
	output: delta_%m%.mat 
		VPD_%m%.mat

3 - SolarRadiation.m
	input: elev.tif, srad_%m%.tif, Tmax_%m%.tif, Tmin_%m%.tif, vapr_%m%.tif
	output: Rn_%m%.mat

4 - PET_PennmanMonteithFAO.m
	input: Tavg_%m%.tif, wind_%m%.tif, gamma_%m%.mat, delta_%m%.mat, VPD_%m%.mat, Rn_%m%.mat
	output: PET_%m%.mat

5 - WetnessIndex.m
	input: prec_%m%.tif, PET_%m%.tif
	output: WI_%m%.m

6 - WI_monthly_avg.m
	input: prec_%m%.tif, PET_%m%.tif
	output: WI_avg.mat and WI_avg.tif
